package create_pattern.build_pattern.factory_method_pattern;

/**
 * 工厂方法模式
 */
public class MainFactoryMethod {
    public static void main(String[] args) {
        LoggerFactory factory;
        factory = new FileLoggerFactory();
        Logger logger = factory.createLogger();
        logger.writeLog();
    }
}
